#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#pragma once

typedef int STDatatype;

typedef struct Stack
{
	STDatatype* p;
	int top;
	int capacity;
}ST;

void StackInit(ST* ph);
void StackPush(ST* ph, STDatatype x);
void StackPop(ST* ph);
STDatatype StackTop(ST* ph);
void StackSize(ST* ph);
void StackDestroy(ST* ph);